package com.gccloud.design.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * @author mengyu
 * @date 2020/12/28 10:21
 */
@Data
@ApiModel("策略属性实体")
@TableName("SD_DISPATCH_PRINCIPLE_ATTR")
@ToString(callSuper = true)
@Accessors(chain = true)
public class SdDispatchPrincipleAttrEntity implements Serializable {

    private static final long serialVersionUID = -5278461833756272863L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("策略属性ID")
    private int principleAttrId;

    @ApiModelProperty("策略ID")
    private int principleId;

    @ApiModelProperty("策略表字段编码")
    private String attrCode;

    @ApiModelProperty("策略表字段名称")
    private String attrName;

    @ApiModelProperty("属性类型（结果/条件）")
    private String attrType;

    @TableLogic
    @ApiModelProperty("删除标识")
    private int delFlag;

    @ApiModelProperty("创建人ID")
    private String creatorId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty("最后修改人ID")
    private String lastModUserid;

    @ApiModelProperty("最后修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String lastModTime;

    @ApiModelProperty("分库字段")
    private int shardingId;

}
